package com.dayatang.hrm.compensation.infra.tapestry;

import org.apache.tapestry5.ioc.ServiceBinder;

import com.dayatang.hrm.compensation.domain.CalculateRuleRepository;
import com.dayatang.hrm.compensation.domain.CalculateRuleSettingRepository;
import com.dayatang.hrm.compensation.domain.FiscalPeriodRepository;
import com.dayatang.hrm.compensation.domain.FiscalYearRepository;
import com.dayatang.hrm.compensation.domain.PayRollRepository;
import com.dayatang.hrm.compensation.domain.SalaryAccountSuiteEmployeeAssignRepository;
import com.dayatang.hrm.compensation.domain.SalaryAccountSuiteRepository;
import com.dayatang.hrm.compensation.domain.SalaryAccountSuiteSettingRepository;
import com.dayatang.hrm.compensation.domain.SalaryArchiveRepository;
import com.dayatang.hrm.compensation.domain.SalaryCalculateItemRepository;
import com.dayatang.hrm.compensation.domain.SalaryCalculateItemSettingRepository;
import com.dayatang.hrm.compensation.domain.SalaryItemTypeRepository;
import com.dayatang.hrm.compensation.domain.SalaryParameterRepository;
import com.dayatang.hrm.compensation.domain.SalaryParameterSettingRepository;
import com.dayatang.hrm.compensation.infra.hibernate.CalculateRuleRepositoryImpl;
import com.dayatang.hrm.compensation.infra.hibernate.CalculateRuleSettingRepositoryImpl;
import com.dayatang.hrm.compensation.infra.hibernate.FiscalPeriodRepositoryImpl;
import com.dayatang.hrm.compensation.infra.hibernate.FiscalYearRepositoryImpl;
import com.dayatang.hrm.compensation.infra.hibernate.PayRollRepositoryImpl;
import com.dayatang.hrm.compensation.infra.hibernate.SalaryAccountSuiteEmployeeAssignRepositoryImpl;
import com.dayatang.hrm.compensation.infra.hibernate.SalaryAccountSuiteRepositoryImpl;
import com.dayatang.hrm.compensation.infra.hibernate.SalaryAccountSuiteSettingRepositoryImpl;
import com.dayatang.hrm.compensation.infra.hibernate.SalaryArchiveRepositoryImpl;
import com.dayatang.hrm.compensation.infra.hibernate.SalaryCalculateItemRepositoryImpl;
import com.dayatang.hrm.compensation.infra.hibernate.SalaryCalculateItemSettingRepositoryImpl;
import com.dayatang.hrm.compensation.infra.hibernate.SalaryItemTypeRepositoryImpl;
import com.dayatang.hrm.compensation.infra.hibernate.SalaryParameterRepositoryImpl;
import com.dayatang.hrm.compensation.infra.hibernate.SalaryParameterSettingRepositoryImpl;

/**
 * This module is automatically included as part of the Tapestry IoC Registry,
 * it's a good place to configure and extend Tapestry, or to place your own
 * service definitions.
 */
public class BasicModule {

	public static void bind(ServiceBinder binder) {

		binder.bind(CalculateRuleRepository.class,
				CalculateRuleRepositoryImpl.class);
		binder.bind(CalculateRuleSettingRepository.class,
				CalculateRuleSettingRepositoryImpl.class);
		binder.bind(FiscalPeriodRepository.class,
				FiscalPeriodRepositoryImpl.class);
		binder.bind(FiscalYearRepository.class, FiscalYearRepositoryImpl.class);
		binder.bind(PayRollRepository.class, PayRollRepositoryImpl.class);
		binder.bind(SalaryAccountSuiteEmployeeAssignRepository.class,
				SalaryAccountSuiteEmployeeAssignRepositoryImpl.class);
		binder.bind(SalaryAccountSuiteRepository.class,
				SalaryAccountSuiteRepositoryImpl.class);
		binder.bind(SalaryAccountSuiteSettingRepository.class,
				SalaryAccountSuiteSettingRepositoryImpl.class);
		binder.bind(SalaryArchiveRepository.class,
				SalaryArchiveRepositoryImpl.class);
		binder.bind(SalaryCalculateItemRepository.class,
				SalaryCalculateItemRepositoryImpl.class);
		binder.bind(SalaryCalculateItemSettingRepository.class,
				SalaryCalculateItemSettingRepositoryImpl.class);
		binder.bind(SalaryItemTypeRepository.class,
				SalaryItemTypeRepositoryImpl.class);
		binder.bind(SalaryParameterRepository.class,
				SalaryParameterRepositoryImpl.class);
		binder.bind(SalaryParameterSettingRepository.class,
				SalaryParameterSettingRepositoryImpl.class);

	}

}
